package com.zdp.netty.chapter14;

import lombok.Data;
import lombok.Getter;

/**
 * @Author zhengdp
 * @Description 消息类型
 */
@Getter
public enum MessageType {
    SERVICE_REQ((byte)0,"服务请求"),
    SERVICE_RESP((byte)1,"服务响应"),
    ONE_WAY((byte)2,""),
    LOGIN_REQ((byte)3,"登录请求"),
    LOGIN_RESP((byte)4,"登录响应"),
    HEARTBEAT_REQ((byte)5,"心跳请求"),
    HEARTBEAT_RESP((byte)6,"心跳响应");
    private byte value;
    private String key;


    MessageType(byte b, String s) {
        value = b;
        key = s;
    }
}
